<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css">
    <script src="jquery-3.1.1.min.js"></script>
    <script src="http://cdn.bootcss.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="css/index.css">
    <link rel="stylesheet" href="css/list.css">
</head>
<body>
    <div id="header">
        <div class="container">
            <nav class="navbar navbar-inverse" role="navigation">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse"
                            data-target="#example-navbar-collapse">
                        <span class="sr-only">切换导航</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="index.php">书吧</a>
                </div>
                <div class="collapse navbar-collapse" id="example-navbar-collapse">
                    <ul class="nav navbar-nav">
                        <li><a href="index.php">网站首页</a></li>
                        <li><a href="about.html">关于我们</a></li>
                        <li><a href="list.html">图书展示</a></li>
                        <li><a href="#">联系我们</a></li>
                        <li><a href="shopCar.html">购物车</a></li>
                        <li class="active"><a href="addBooks.html">添加图书</a></li>
                    </ul>
                </div>
            </nav>
        </div>
    </div>
    <div class="wrap">
        <div class="container">
            <div class="text-center">
                <h2>添加图书</h2>
            </div>
            <form class="form-horizontal" role="form" action="add.php" method="post" enctype="multipart/form-data">

                <div class="form-group">
                    <label  class="col-sm-2 control-label">书名</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="name" placeholder="书名">
                    </div>
                </div>
                <div class="form-group">
                    <label  class="col-sm-2 control-label">简介</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="intro" placeholder="简介">
                    </div>
                </div>
                <div class="form-group">
                    <label  class="col-sm-2 control-label">作者</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="author" placeholder="作者">
                    </div>
                </div>
                <div class="form-group">
                    <label  class="col-sm-2 control-label">出版社</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="press" placeholder="出版社">
                    </div>
                </div>
                <div class="form-group">
                    <label  class="col-sm-2 control-label">出版日期</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="date" placeholder='出版日期'>
                    </div>
                </div>
                <div class="form-group">
                    <label  class="col-sm-2 control-label">价格</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="price" placeholder="价格">
                    </div>
                </div>
                <div class="form-group">
                    <label  class="col-sm-2 control-label">ISB</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="isb" placeholder="ISB">
                    </div>
                </div>
                <div class="form-group">
                    <label for="file" class="col-sm-2 control-label">书籍图片</label>
                    <div class="col-sm-10">
                        <input type="file" id="file" name="img">
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <button class="btn btn-default" onclick="add()">添加</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</body>
<script>
    
</script>
</html>